package com.xwn.common.database.properties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @author xwn
 */
@Configuration
public class DatabaseProperties {
    @Value("${database.jdbc.driver}")
    public String jdbcDriver;
    @Value("${database.jdbc.url}")
    public String jdbcUrl;
    @Value("${database.jdbc.username}")
    public String jdbcUsername;
    @Value("${database.jdbc.password}")
    public String jdbcPassword;
    @Value("${database.jdbc.initialSize:10}")
    public Integer jdbcInitialSize;
    @Value("${database.jdbc.minIdle:10}")
    public Integer jdbcMinIdle;
    @Value("${database.jdbc.maxActive:100}")
    public Integer jdbcMaxActive;


    @Value("${database.jdbc.type}")
    public String jdbcType;
    @Value("${database.jdbc.mapper.configPath:}")
    public String jdbcMapperConfigPath;
    @Value("${database.jdbc.mapper.locations}")
    public String jdbcMapperLocations;
}
